import axios from '../utils/request'
// 获取所有订单
export const getOrderAll=async()=>{
 return await axios({
    url:'http://localhost:3000/order/order',
    method:'post',
  })
} 
export const getOrderById=async(data)=>{
 return await axios({
    url:'http://localhost:3000/order/orderComId',
    method:'post',
    data
  })
} 
// 获取最近七天每日订单
export const orderbytime=async()=>{
 return await axios({
    url:'http://localhost:3000/order/orderbytime',
    method:'get'
  })
} 